<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增报')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-report-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">报表标题：</label>
                <div class="col-sm-8">
                    <input name="title" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">二级标题：</label>
                <div class="col-sm-8">
                    <input name="subtitle" class="form-control" type="text">
                </div>
            </div>
            
            <div class="form-group">    
                <label class="col-sm-3 control-label">描述：</label>
                <div class="col-sm-8">
                    <input name="descri" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">报表URL：</label>
                <div class="col-sm-8">
                    <input name="reporturl" class="form-control" type="text">
                </div>
            </div>


            <div class="form-group">    
                <label class="col-sm-3 control-label">时间日期范围：</label>
                <div class="col-sm-8">
                    <select name="daterange" id="daterange" class="form-control">
<option value="1">从年初首日到今天</option>
<option value="2">今天之前的三个月</option>
<option value="3">今天之前的三个月（首日期为1日）</option>
<option value="4">今天之前的六个月</option>
<option value="5">今天之前的六个月（首日期为1日）</option>
<option value="6">之前的三个月（结束日期为上个月最后一天）</option>
<option value="7">之前的六个月（结束日期为上个月最后一天）</option>
<option value="8">之前的十二个月（结束日期为上个月最后一天）</option>
</select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">下拉选项(字典项)：</label>
                <div class="col-sm-8">
                    
                    <select name="options" id="options" class="form-control">
<option value="">--请选择--</option>
<!-- <option th:each="item:${dataSourceDrives}" th:value="${item.value}" th:text="${item.value}"></option> -->
</select>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "web/report"
        $("#form-report-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-report-add').serialize());
            }
        }
    </script>
</body>
</html>